package com.ecoolex.union.pay.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class UnionPayPopularMerchantExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public UnionPayPopularMerchantExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public UnionPayPopularMerchantExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public UnionPayPopularMerchantExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        UnionPayPopularMerchantExample example = new UnionPayPopularMerchantExample();
        return example.createCriteria();
    }

    public UnionPayPopularMerchantExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public UnionPayPopularMerchantExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public UnionPayPopularMerchantExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public UnionPayPopularMerchantExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public UnionPayPopularMerchantExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("unionpaypopularmerchant.Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("unionpaypopularmerchant.Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Id = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Id <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("unionpaypopularmerchant.Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Id > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Id >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("unionpaypopularmerchant.Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Id < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Id <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("unionpaypopularmerchant.Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("unionpaypopularmerchant.Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("unionpaypopularmerchant.Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("unionpaypopularmerchant.Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIsNull() {
            addCriterion("unionpaypopularmerchant.MerchantId is null");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIsNotNull() {
            addCriterion("unionpaypopularmerchant.MerchantId is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantIdEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId =", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId <>", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThan(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId >", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId >=", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThan(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId <", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId <=", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantIdLike(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId like", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotLike(String value) {
            addCriterion("unionpaypopularmerchant.MerchantId not like", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.MerchantId in", values, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.MerchantId not in", values, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.MerchantId between", value1, value2, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.MerchantId not between", value1, value2, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantNameIsNull() {
            addCriterion("unionpaypopularmerchant.MerchantName is null");
            return (Criteria) this;
        }

        public Criteria andMerchantNameIsNotNull() {
            addCriterion("unionpaypopularmerchant.MerchantName is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantNameEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName =", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantName = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantNameNotEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName <>", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantName <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantNameGreaterThan(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName >", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantName > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantNameGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName >=", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantName >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantNameLessThan(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName <", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantName < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantNameLessThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName <=", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantName <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantNameLike(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName like", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameNotLike(String value) {
            addCriterion("unionpaypopularmerchant.MerchantName not like", value, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.MerchantName in", values, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameNotIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.MerchantName not in", values, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.MerchantName between", value1, value2, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantNameNotBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.MerchantName not between", value1, value2, "merchantName");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlIsNull() {
            addCriterion("unionpaypopularmerchant.MerchantUrl is null");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlIsNotNull() {
            addCriterion("unionpaypopularmerchant.MerchantUrl is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl =", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantUrl = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantUrlNotEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl <>", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantUrl <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantUrlGreaterThan(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl >", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantUrl > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantUrlGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl >=", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantUrl >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantUrlLessThan(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl <", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantUrl < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantUrlLessThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl <=", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.MerchantUrl <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andMerchantUrlLike(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl like", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlNotLike(String value) {
            addCriterion("unionpaypopularmerchant.MerchantUrl not like", value, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.MerchantUrl in", values, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlNotIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.MerchantUrl not in", values, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.MerchantUrl between", value1, value2, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andMerchantUrlNotBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.MerchantUrl not between", value1, value2, "merchantUrl");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdIsNull() {
            addCriterion("unionpaypopularmerchant.UplanMerchantId is null");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdIsNotNull() {
            addCriterion("unionpaypopularmerchant.UplanMerchantId is not null");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId =", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UplanMerchantId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdNotEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId <>", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UplanMerchantId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdGreaterThan(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId >", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UplanMerchantId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId >=", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UplanMerchantId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdLessThan(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId <", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UplanMerchantId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdLessThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId <=", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UplanMerchantId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdLike(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId like", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdNotLike(String value) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId not like", value, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId in", values, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdNotIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId not in", values, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId between", value1, value2, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andUplanMerchantIdNotBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.UplanMerchantId not between", value1, value2, "uplanMerchantId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("unionpaypopularmerchant.`Status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("unionpaypopularmerchant.`Status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.`Status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`Status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.`Status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`Status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("unionpaypopularmerchant.`Status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`Status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.`Status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`Status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("unionpaypopularmerchant.`Status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`Status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("unionpaypopularmerchant.`Status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`Status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("unionpaypopularmerchant.`Status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("unionpaypopularmerchant.`Status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("unionpaypopularmerchant.`Status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("unionpaypopularmerchant.`Status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("unionpaypopularmerchant.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("unionpaypopularmerchant.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("unionpaypopularmerchant.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("unionpaypopularmerchant.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("unionpaypopularmerchant.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("unionpaypopularmerchant.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("unionpaypopularmerchant.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("unionpaypopularmerchant.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("unionpaypopularmerchant.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("unionpaypopularmerchant.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("unionpaypopularmerchant.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("unionpaypopularmerchant.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("unionpaypopularmerchant.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("unionpaypopularmerchant.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("unionpaypopularmerchant.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("unionpaypopularmerchant.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("unionpaypopularmerchant.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("unionpaypopularmerchant.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("unionpaypopularmerchant.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("unionpaypopularmerchant.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("unionpaypopularmerchant.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("unionpaypopularmerchant.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("unionpaypopularmerchant.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("unionpaypopularmerchant.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("unionpaypopularmerchant.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("unionpaypopularmerchant.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("unionpaypopularmerchant.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("unionpaypopularmerchant.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("unionpaypopularmerchant.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("unionpaypopularmerchant.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("unionpaypopularmerchant.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("unionpaypopularmerchant.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("unionpaypopularmerchant.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(UnionPayPopularMerchant.Column column) {
            addCriterion(new StringBuilder("unionpaypopularmerchant.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("unionpaypopularmerchant.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("unionpaypopularmerchant.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("unionpaypopularmerchant.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("unionpaypopularmerchant.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private UnionPayPopularMerchantExample example;

        protected Criteria(UnionPayPopularMerchantExample example) {
            super();
            this.example = example;
        }

        public UnionPayPopularMerchantExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(UnionPayPopularMerchant.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(UnionPayPopularMerchant.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.union.pay.retailer.entity.UnionPayPopularMerchantExample example);
    }
}